
        :root {
            --primary: #2e7d32;
            --primary-light: #4caf50;
            --bg: #f4f9f4;
            --card-bg: #ffffff;
            --text: #333333;
        }
        body {
            font-family: system-ui, -apple-system, sans-serif;
            background:linear-gradient(rgb(212, 255, 212),white,rgb(212, 255, 212));
    background-attachment: fixed;
    color: rgb(47, 100, 47);
    text-align: justify;
            margin: 0;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .container {
            width: 100%;
            max-width: 600px;
            background: var(--card-bg);
            padding: 24px;
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }
        h1 { text-align: center; color: var(--primary); margin-bottom: 20px; }
        .camera-box {
            position: relative;
            width: 100%;
            height: 320px;
            background: #000;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 16px;
        }
        video, canvas, #preview-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
        }
        #preview-img, canvas, video { display: none; }
        .camera-box.active video { display: block; }
        .camera-box.preview #preview-img { display: block; }
        .controls {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        button, label.upload-btn {
            flex: 1;
            padding: 12px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            text-align: center;
            transition: background 0.2s;
        }
        button:hover, label.upload-btn:hover { background: var(--primary-light); }
        input[type="file"] { display: none; }
        .results {
            background: #f9fbf9;
            border-left: 4px solid var(--primary);
            padding: 16px;
            border-radius: 0 8px 8px 0;
            display: none;
        }
        .results.active { display: block; }
        .loader {
            text-align: center;
            font-weight: bold;
            color: var(--primary);
            display: none;
            margin: 15px 0;
        }
    